package com.glsc.ngateway.common.base.domain.mysql.gateway.ldap;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;


@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Entity
@Table(name = "t_ldap_ehr_emp")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class LdapEhrEmp {
    @Id
    @Column(name = "badge", length = 100)
    protected String badge;

    @Column(name = "name", length = 200)
    protected String name;

    @Column(name = "email", length = 500)
    protected String email;

    @Column(name = "depid")
    protected Integer depid;

    @Column(name = "title", length = 100)
    protected String title;

    @Column(name = "job_id")
    protected Integer jobId;

    @Column(name = "job_title", length = 100)
    protected String jobTitle;

    @Column(name = "mobile", length = 30)
    protected String mobile;

    @Column(name = "status", length = 5)
    protected String status;

    @Column(name = "reportto", length = 100)
    protected String reportto;

    @Column(name = "oa_user_id")
    protected Integer oaUserId;

    @Column(name = "oa_dept_id")
    protected Integer oaDeptId;

    @Column(name = "oa_comp_id")
    protected Integer oaCompId;

    @Column(name = "messager_url")
    protected String messagerUrl;

    @Transient
    protected LdapEhrDept deptinfo;
}
